header {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	color: #2089f3;
	padding: 10px 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
	margin: 0;
	padding: 0;
	padding-top: 135px;
	padding-bottom: calc(50px + env(safe-area-inset-bottom));
	overflow-x: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	position: relative;
}

footer {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	color: #2089f3;
	text-align: center;
	padding: 10px 0;
	position: fixed;
	bottom: env(safe-area-inset-bottom);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 隐藏所有滚动条 */
::-webkit-scrollbar {
	display: none !important;
}

/* 针对Firefox的设置 */
* {
	scrollbar-width: none !important;
}

/* 确保内容区即使隐藏滚动条也能正常滚动 */
.content-wrapper {
	-ms-overflow-style: none !important;
	/* IE和Edge */
}

video.bg-video {
	position: fixed;
	top: 50% !important;
	left: 50% !important;
	width: 105% !important;
	height: 105% !important;
	min-width: 105% !important;
	min-height: 105% !important;
	object-fit: cover !important;
	z-index: -9999 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	display: block !important;
	pointer-events: none;
	transform: translate(-50%, -50%) !important;
}

header h1 {
	text-align: center;
	margin: 0;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav {
	padding: 10px 0;
	position: fixed;
	top: 70px;
	width: 100%;
	z-index: 1000;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
}

nav ul li {
	margin: 0 4px;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav ul li a {
	display: block;
	color: #2089f3;
	text-align: center;
	padding: 12px 18px;
	text-decoration: none;
	border-radius: 12px;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	font-weight: 500;
}

nav ul li:hover {
	transform: translateY(-4px) scale(1.03);
}

nav ul li a:hover {
	background-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	color: #1565c0;
	border: 1px solid rgba(255, 255, 255, 0.5);
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.5);
	z-index: -1;
}

.content-wrapper {
	width: 100%;
	height: calc(100vh - 185px);
	overflow-y: auto;
	padding: 20px;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

.link-grid {
	margin-top: 90px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
	margin: 2px;
	align-items: stretch;
	grid-auto-rows: 1fr;
}

.link-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(to right,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	transition: background 0.2s ease-out;
	z-index: 1;
	mix-blend-mode: overlay;
}

.link-card {
	padding: 12px;
	text-align: center;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 0 10px rgba(255, 255, 255, 0.3);
	transition: all 0.4s linear(0 0%, 0 2.27%, 0.02 4.53%, 0.04 6.8%, 0.06 9.07%, 0.1 11.33%, 0.14 13.6%, 0.25 18.15%, 0.39 22.7%, 0.56 27.25%, 0.77 31.8%, 1 36.35%, 0.89 40.9%, 0.85 43.18%, 0.81 45.45%, 0.79 47.72%, 0.77 50%, 0.75 52.27%, 0.75 54.55%, 0.75 56.82%, 0.77 59.1%, 0.79 61.38%, 0.81 63.65%, 0.85 65.93%, 0.89 68.2%, 1 72.7%, 0.97 74.98%, 0.95 77.25%, 0.94 79.53%, 0.94 81.8%, 0.94 84.08%, 0.95 86.35%, 0.97 88.63%, 1 90.9%, 0.99 93.18%, 0.98 95.45%, 0.99 97.73%, 1 100%);
}

.link-card:hover {
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow:
		0 12px 24px rgba(0, 0, 0, 0.15),
		0 0 25px rgba(214, 214, 214, 0.25),
		0 0 10px rgba(255, 255, 255, 0.5),
		inset 0 0 15px rgba(255, 255, 255, 0.4);
	transform: translateY(-8px) scale(1.05);
	border-radius: 20px;
}

.link-card:hover .card-image {
	transform: scale(1.15);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-image {
	width: 40px;
	height: 40px;
	margin-right: 8px;
	object-fit: contain;
	vertical-align: middle;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-card a {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2089f3;
	text-decoration: none;
	padding: 6px 0;
	text-align: inherit;
	height: auto;
	transition: color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-card a:hover {
	color: #1565c0;
	text-decoration: none;
}

#cursor-glow {
	position: fixed;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle,
			rgba(255, 255, 255, 0.4) 0%,
			rgba(255, 255, 255, 0.2) 40%,
			rgba(255, 255, 255, 0) 75%);
	transform: translate(-50%, -50%);
	z-index: 9999;
	transition: transform 0.1s ease-out, opacity 0.2s ease;
	opacity: 0;
	filter: blur(8px);
}

.link-card:hover~#cursor-glow {
	opacity: 0.8;
	transform: translate(-50%, -50%) scale(1.2);
}

.link-grid ~ .link-grid {
    margin-top: 15px;
}

@keyframes glowPulse {
	0% {
		box-shadow:
			0 12px 24px rgba(0, 0, 0, 0.15),
			0 0 20px rgba(32, 137, 243, 0.2),
			0 0 8px rgba(255, 255, 255, 0.4),
			inset 0 0 12px rgba(255, 255, 255, 0.3);
	}

	100% {
		box-shadow:
			0 12px 24px rgba(0, 0, 0, 0.15),
			0 0 30px rgba(32, 137, 243, 0.3),
			0 0 12px rgba(255, 255, 255, 0.6),
			inset 0 0 18px rgba(255, 255, 255, 0.5);
	}
}

/* webkit.css 内容 */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-corner {
	background: transparent;
}

.content-wrapper {
	scrollbar-width: auto;
	scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.1);
	width: 100%;
	overflow-y: auto;
	padding: 16px 8px; /* 上下保持20px，左右减小到8px */
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

.content-wrapper::-webkit-scrollbar {
	display: block;
}

/* video.css 内容 */
.container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: calc(100vh - 100px);
	padding: 20px;
	margin-top: 100px;
}

#videoPlayer {
	width: 100%;
	max-width: 1156px;
	height: auto;
	margin-top: 20px;
}

#videoForm {
	position: fixed;
	top: 50px;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 10px;
}

h2 {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 10px;
	margin: 0;
	text-align: center;
}

.btn-primary {
	display: block;
	margin: auto;
	margin-top: auto;
}

video {
	border-radius: 20px;
	overflow: hidden;
}

/* base64.html 样式 */
.base64-container {
	max-width: 1920px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
}

.column {
	flex: 1;
	margin: 0 20px;
}

.section {
	margin-bottom: 20px;
}

.input-group {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.input-group label {
	width: 123px;
	text-align: left;
	margin-right: 10px;
}

.input-group input {
	flex: 1;
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.input-group button {
	margin-left: 10px;
	padding: 5px 10px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.input-group button:hover {
	background-color: #0056b3;
}

.result {
	margin-top: 20px;
	border: 1px solid #ccc;
	padding: 10px;
	border-radius: 4px;
	background-color: #f9f9f9;
}

#imageResult {
	max-width: 900px;
	max-height: 664px;
	overflow: auto;
}

#base64Result {
	max-width: 800px;
	max-height: 664px;
	overflow: auto;
}

#base64Result pre {
	white-space: pre-wrap;
}

.copyButton {
	margin-top: 10px;
	padding: 5px 10px;
	background-color: #28a745;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

/* SPA路由样式 */
.page {
	display: none;
}

.page.active {
	display: block;
}

.glass-container {
	position: relative;
	z-index: 1000;
}